import Vue from 'vue'
import Router from 'vue-router'
import Welcome from '@/views/Welcome'
import Login from '@/views/Login'
import Users from '@/views/users/Users'
import FristCategory from '@/views/category/FristCategory'
import secondCategory from '@/views/category/secondCategory'
import Product from '@/views/product/Product'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'Welcome',
    component: Welcome,
    children: [
      {
        path: 'users',
        name: 'Users',
        component: Users
      },
      {
        path: 'firstCategory',
        name: 'FristCategory',
        component: FristCategory
      },
      {
        path: 'secondCategory',
        name: 'SecondCategory',
        component: secondCategory
      },
      {
        path: 'product',
        name: 'Product',
        component: Product
      }
    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  }
  ]
})
